/*
 *接口编写处...
*如果接口需要做Action的权限验证，请在Action上使用属性
*如: [ApiActionPermission("T_VIEW_RM",Enums.ActionPermissionOptions.Search)]
 */
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using VOL.Entity.DomainModels;
using VOL.Wms.IServices;
using VOL.WebApi.VOL.WebApi.Operator.Wms;

namespace VOL.Wms.Controllers
{
    public partial class T_VIEW_RMController
    {
        private readonly IT_VIEW_RMService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;

        [ActivatorUtilitiesConstructor]
        public T_VIEW_RMController(
            IT_VIEW_RMService service,
            IHttpContextAccessor httpContextAccessor
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
        }
        [HttpGet,Route("SynchronizeSuppliers")            ]
      public IActionResult 同步招采平台供应商档案()
        {

           if (T_VIEW_RMOperator.SynchronizeSuppliersOperator())
            {
                return Content("1");
            }
           else
            {
                return Content("2");
            }
            
        }
    }
}
